package com.xy.annotaion.handler.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.event.EventListener;

/**
 * @author Dell
 */
@Configuration
@Slf4j
public class TestApplicationReadyListener {

    @EventListener
    public void likeDOMContentLoaded(ApplicationReadyEvent event) {
        log.info("Spring's env is ready!!!");
        log.info("ready over");
    }


}
